package com.miplus.ccrm.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 系统部门组关系关联表
 * @TableName sys_grpmgr
 */
@TableName(value ="sys_grpmgr")
@Data
public class SysGrpmgr implements Serializable {
    /**
     * 用户ID
     */
    private String grpmanagerid;

    /**
     * 备用
     */
    private String empid;

    /**
     * 管理组ID
     */
    private String grpid;

    /**
     * 备用
     */
    private String startdt;

    /**
     * 备用
     */
    private String enddt;

    /**
     * 创建人
     */
    private String crusr;

    /**
     * 创建时间
     */
    private Date crdt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysGrpmgr other = (SysGrpmgr) that;
        return (this.getGrpmanagerid() == null ? other.getGrpmanagerid() == null : this.getGrpmanagerid().equals(other.getGrpmanagerid()))
            && (this.getEmpid() == null ? other.getEmpid() == null : this.getEmpid().equals(other.getEmpid()))
            && (this.getGrpid() == null ? other.getGrpid() == null : this.getGrpid().equals(other.getGrpid()))
            && (this.getStartdt() == null ? other.getStartdt() == null : this.getStartdt().equals(other.getStartdt()))
            && (this.getEnddt() == null ? other.getEnddt() == null : this.getEnddt().equals(other.getEnddt()))
            && (this.getCrusr() == null ? other.getCrusr() == null : this.getCrusr().equals(other.getCrusr()))
            && (this.getCrdt() == null ? other.getCrdt() == null : this.getCrdt().equals(other.getCrdt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGrpmanagerid() == null) ? 0 : getGrpmanagerid().hashCode());
        result = prime * result + ((getEmpid() == null) ? 0 : getEmpid().hashCode());
        result = prime * result + ((getGrpid() == null) ? 0 : getGrpid().hashCode());
        result = prime * result + ((getStartdt() == null) ? 0 : getStartdt().hashCode());
        result = prime * result + ((getEnddt() == null) ? 0 : getEnddt().hashCode());
        result = prime * result + ((getCrusr() == null) ? 0 : getCrusr().hashCode());
        result = prime * result + ((getCrdt() == null) ? 0 : getCrdt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", grpmanagerid=").append(grpmanagerid);
        sb.append(", empid=").append(empid);
        sb.append(", grpid=").append(grpid);
        sb.append(", startdt=").append(startdt);
        sb.append(", enddt=").append(enddt);
        sb.append(", crusr=").append(crusr);
        sb.append(", crdt=").append(crdt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}